﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using EntityObjects;
using BAL.Controller;
namespace PresentationLayer.View.StoreClerk
{
    public partial class Notification_ReorderLevel : System.Web.UI.UserControl
    {
        RaisePurchaseOrderControl rpc = new RaisePurchaseOrderControl();
        List<Catalogue> cat;
        protected void Page_Load(object sender, EventArgs e)
        {
              try
           {
               if (!IsPostBack)
               {
                   BindClerk();
               }
           }
           catch (Exception ex)
           {
               Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('there is no requisition available for Approvel  or data base error!');</script>");

           }


       }
       protected void BindClerk()
       {
           int count = 0;
           cat = rpc.getReorderLvlPurchaseOrder();
           count=cat.Count();
           Noti_Clerk.Text="Quantity Below Reorder Level: "+count;


       }
        }
        }
